package com.alibaba.algo.exception;

import lombok.Getter;

@Getter
public enum SysDictErrorCode {

    CODE_REPEAT(21100, "code已被占用"),
    CODE_IS_TOO_LONG(21101, "code过长"),
    NAME_IS_TOO_LONG(21101, "数据字典名称过长"),
    CAN_NOT_DELETE(21102, "当前数据字典[{0}]下还有子项,不允许删除"),
    DESC_IS_TOO_LONG(21103, "描述过长");

    private Integer code;

    private String message;

    SysDictErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    }
